<?php

declare(strict_types=1);

namespace ImiApp\ApiServer\Api\Controller\user;

use Imi\Server\Http\Route\Annotation\Action;
use Imi\Server\Http\Route\Annotation\Controller;
use Imi\Server\Http\Route\Annotation\Route;
// use ImiApp\ApiServer\Api\Model\User;
use Psr\Http\Message\ResponseInterface;
use Imi\Aop\Annotation\Inject;
use Phpben\Imi\Validate\Annotation\Validate;
use Phpben\Imi\Auth\Annotation\Auth;
use ImiApp\ApiServer\Api\Controller\CommonController;

/**
 * OA\Info(title="用户")
 * @Auth(name="token",nologin={"login","register","resetpwd","test"})
 * @Controller("/user.user_com/")
 */
class UserComController extends CommonController
{

    /**
     * 测试
     * @Action
     * @Route(url="test",method="GET")
     * @return void
     */
    public function test()
    {
        return $this->success('usercom登陆成功', [
            'user' => 'xiaohe4966',
            'msg' => "测试",
            'date' => date('Y-m-d H:i:s'),
        ]);
    }



}
